home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / SoundSprocketTest / TS3Utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.4 KB  |  82 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    File:        TS3Utils.h
  3.  *
  4.  *    Copyright © 1996 Apple Computer, Inc.
  5.  */
  6.  
  7. #ifndef __TS3Utils__
  8. #define __TS3Utils__
  9.  
  10. #include <Dialogs.h>
  11. #include <Types.h>
  12.  
  13. #include <QD3D.h>
  14.  
  15.  
  16. void Utils_Init(
  17.     void);
  18.  
  19. void Utils_Exit(
  20.     void);
  21.  
  22. float Utils_Interval(
  23.     const UnsignedWide*    inPrevTime,
  24.     const UnsignedWide*    inCurrTime);
  25.  
  26. UserItemUPP Utils_GetOKUserItemProc(
  27.     void);
  28.  
  29. void Utils_SetStr255Field(
  30.     DialogPtr            inDialog,
  31.     short                inItem,
  32.     ConstStr255Param    inValue,
  33.     Boolean                inHasValue);
  34.  
  35. Boolean Utils_GetStr255Field(
  36.     DialogPtr            inDialog,
  37.     short                inItem,
  38.     Str255                outValue,
  39.     Boolean*            outHasValue);
  40.  
  41. void Utils_SetUInt32Field(
  42.     DialogPtr            inDialog,
  43.     short                inItem,
  44.     UInt32                inValue,
  45.     Boolean                inHasValue);
  46.  
  47. Boolean Utils_GetUInt32Field(
  48.     DialogPtr            inDialog,
  49.     short                inItem,
  50.     UInt32*                outValue,
  51.     Boolean*            outHasValue,
  52.     UInt32                inMin,
  53.     UInt32                inMax);
  54.  
  55. void Utils_SetFloatField(
  56.     DialogPtr            inDialog,
  57.     short                inItem,
  58.     float                inValue,
  59.     Boolean                inHasValue);
  60.  
  61. Boolean Utils_GetFloatField(
  62.     DialogPtr            inDialog,
  63.     short                inItem,
  64.     float*                outValue,
  65.     Boolean*            outHasValue,
  66.     float                inMin,
  67.     float                inMax);
  68.  
  69. void Utils_SetVector3DField(
  70.     DialogPtr            inDialog,
  71.     short                inItem,
  72.     const TQ3Vector3D*    inValue,
  73.     Boolean                inHasValue);
  74.  
  75. Boolean Utils_GetVector3DField(
  76.     DialogPtr            inDialog,
  77.     short                inItem,
  78.     TQ3Vector3D*        outValue,
  79.     Boolean*            outHasValue);
  80.  
  81.  
  82. #endif /* __TS3Utils__ */